ActionController::Routing::Routes.draw do |map|
  
  map.connect 'admin/:action/:id', :controller => 'admin', :id => 'id'
  map.connect 'account/:action', :controller => 'account', :action => 'action'
  
  map.comatose_admin
  
  map.connect 'view/:id', :controller => 'site', :action => 'view', :id => 'id'
  map.connect 'viewsector/:id', :controller => 'site', :action => 'viewsector', :id => 'id'
  
  ['jobs','rss', 'search', 'sitemap', 'cv', 'upload'].each {|e| 
    map.connect e, :controller => 'site', :action => e
  }
  map.comatose_root ''
  
  map.connect ':action/:id', :controller => 'site'
  
  map.connect ':controller/:action/:id.:format'
  map.connect ':controller/:action/:id'
end